package com.sk.ccflower.server.common.xmlRpcManager;

import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcTransport;
import org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl;

/**
 * XmlRpcSunHttpTransportFactory를 다시 구성한 클래스
 */
public class ModXmlRpcSunHttpTransportFactory 	extends XmlRpcTransportFactoryImpl {
	/**
	 * XmlRpcSunHttpTransportFactory에서는 XmlRpcSunHttpTransport인데 
	 * 새로 구성한 ModXmlRpcSunHttpTransport를 사용하게 수정
	 */
	private final ModXmlRpcSunHttpTransport HTTP_TRANSPORT;

	/** Creates a new factory, which creates transports for the given client.
	 * @param pClient The client, which is operating the factory.
	 */
	public ModXmlRpcSunHttpTransportFactory(XmlRpcClient pClient) {
		super(pClient);
		HTTP_TRANSPORT = new ModXmlRpcSunHttpTransport(pClient);
	 }

	public XmlRpcTransport getTransport() { return HTTP_TRANSPORT; }
}
